package com.jdf.feign;

import com.jdf.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @description:
 * @author: Bug修复机
 * @date: 2022年09月29日 ： 11:30
 * @version: ver1.0
 * @email tangli@itsource.cn
 */
@FeignClient("service-product")
public interface ProductService {

    @RequestMapping(value = "/product/{id}",method = RequestMethod.GET)
    JSONResult get(@PathVariable("id")Long id);

}
